package com.lzm.ydpt.entity.mall;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 优惠券实体
 */
public class CouponBean implements Parcelable {
    private String money;// 多少额度
    private String all;//蛮多少可以
    private String time;//

    protected CouponBean(Parcel in) {
        money = in.readString();
        all = in.readString();
        time = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(money);
        dest.writeString(all);
        dest.writeString(time);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CouponBean> CREATOR = new Creator<CouponBean>() {
        @Override
        public CouponBean createFromParcel(Parcel in) {
            return new CouponBean(in);
        }

        @Override
        public CouponBean[] newArray(int size) {
            return new CouponBean[size];
        }
    };

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getAll() {
        return all;
    }

    public void setAll(String all) {
        this.all = all;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
